<html>
<head>
<title>Step 2: Compile the Java Code</title>
</head>
<body>
<table width=100%>
<tr>
<td align=left>
<a href="step1.html"><img src=../../images/PreviousArrow.gif width=26 height=26 align=bottom border=0 alt="Previous | "></a><a
href="step3.html"><img src=../../images/NextArrow.gif width=26 height=26 align=bottom border=0 alt="Next | "></a><a
href="../../index.html"><img src=../../images/WayUpArrow.gif width=26 height=26 align=bottom border=0 alt="Trail Map | "></a><a
href="../index.html"><img src=../../images/nativeHeader.gif width=26 height=26 align=bottom border=0 alt="Integrating Native Methods into Java Programs | "></a>
<td>
<td align=right>
<a href="index.html"><strong><em>Step By Step</em></strong></a>
</td>
</tr>
</table>
<p>
<hr size=4>

<h2>
    Step 2: Compile the Java Code
</h2>
<p>
<blockquote>

Use the Java compiler to <a href="_compilingjava.html">compile</a>
the Java class that you created in the <a href="step1.html">previous step</a>.
At this time, you should also compile the main Java application
that you wrote to test the native method.

<h4>See Also</h4>
<blockquote>
<a href="http://java.sun.com/JDK-beta/tools/solaris/javac.html"><img src="../../images/manPagesIcon.gif" width=8 height=20 border=0></a>
<a href="http://java.sun.com/JDK-beta/tools/solaris/javac.html">Compiler Man Page</a><br>
<a href="../../tools/index.html"><img src="../../images/toolIcon.gif" width=20 height=20 border=0></a>
<a href="../../tools/index.html"><em>Developer Tools</em></a>
</blockquote>

</blockquote>
<p>
<hr size=4>
<p>
<table width=100%>
<tr>
<td align=left>
<a href="step1.html"><img src=../../images/PreviousArrow.gif width=26 height=26 align=top border=0 alt="Previous | "></a><a
href="step3.html"><img src=../../images/NextArrow.gif width=26 height=26 align=top border=0 alt="Next | "></a><a
href="../../index.html"><img src=../../images/WayUpArrow.gif width=26 height=26 align=top border=0 alt="Trail Map | "></a><a
href="../index.html"><img src=../../images/nativeHeader.gif width=26 height=26 align=top border=0 alt="Integrating Native Methods into Java Programs | "></a>
<td>
<td align=right>
<a href="index.html"><strong><em>Step By Step</em></strong></a>
</td>
</tr>
</table>
</body>
</html>
